<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:cc="http://java.sun.com/jsf/composite">

<!-- INTERFACE -->
<cc:interface>
	<cc:attribute name="bean"/>
	<cc:attribute name="executar"/>
	<cc:attribute name="renderizar"/>
</cc:interface>

<!-- IMPLEMENTATION -->
<cc:implementation>
	<h:panelGrid columns="4">
		<h:commandLink styleClass="botao" value="Primeiro" action="#{cc.attrs.bean.primeira}">
			<f:ajax execute="@form" render="@form" />
		</h:commandLink>
		<h:commandLink styleClass="botao" value="Anterior" action="#{cc.attrs.bean.anterior}">
			<f:ajax execute="@form" render="@form" />
		</h:commandLink>
		<h:commandLink styleClass="botao" value="Proximo" action="#{cc.attrs.bean.proxima}">
			<f:ajax execute="@form" render="@form"/>
		</h:commandLink>
		<h:commandLink styleClass="botao" value="Ultimo" action="#{cc.attrs.bean.ultima}">
			<f:ajax execute="@form" render="@form"/>
		</h:commandLink>
	</h:panelGrid>
	<h:outputText styleClass="paginacao" value="Página #{cc.attrs.bean.paginaCorrente} / #{cc.attrs.bean.totalPaginas}" />	
</cc:implementation>
</html>